﻿using SCM.Common;
using SCM.Model.DBEntity;
using System.Collections.Generic;

namespace SCM.Servie.IBusiness
{
    /// <summary>
    /// 用户角色服务接口
    /// </summary>
    public interface IUserRoleService
    {
        bool Add(List<T_User_Role> userRoles);

        bool Delete(List<string> ids);

        bool Delete(string companyId, string userId);

        bool Update(T_User_Role model);

        T_User_Role GetById(string id);

        List<T_User_Role> GetList(string companyId, string userId);

        PageData<T_User_Role> Query(string companyId, string userId, PageInfo page);
    }
}
